package updown.controller.other;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import updown.domain.Log;
import updown.service.task.LogService;

import java.util.List;

/**
 * <p>Title: updown.controller.other </p>
 * <p>Description:updown: - 日志 </p>
 *
 * @Author:jiangkaixin
 * @Date:2022/1/21
 * @Version: 1.0
 */
@Slf4j
@Controller
public class LogController {
    @Autowired
    private LogService logService;

    /**
     * 登录
     * @param account
     * @param request
     * @return
     */
    @PostMapping("/getLogList")
    @ResponseBody
    public List<Log> getLogList(@RequestBody Log loggg) {
        log.info("getLogList(),loggg:{}",loggg);
        return logService.getLogList(loggg);
    }
}
